import { BaseController, CoolController } from "@cool-midway/core";
import { Body, Inject, Post } from "@midwayjs/core";
import { ProviderManualOrderDTO } from "../../dto/info";
import { OrderManualService } from "../../service/manual";

/**
 * 服务人员手动录入订单
 */
@CoolController({
    api: []
})
export class ProviderOrderManualController extends BaseController {
    @Inject()
    orderManualService: OrderManualService;

    @Post('/create', { summary: '服务人员录入订单' })
    async create(@Body() dto: ProviderManualOrderDTO) {
        return this.ok(await this.orderManualService.createByProvider(dto));
    }
}


